﻿using WU.LoadTester.Lib.Service;

namespace WU.LoadTester.Lib
{
    public class Settings
    {
        public static readonly string ReleaseString = Resources.About_ReleaseDate;
        public static readonly string ProductVersion = Resources.About_ReleaseVersion;
        private string _favoriteEditorPath = "notepad.exe";
        public string FavoriteEditorPath
        {
            get { return this._favoriteEditorPath;  }
            set { this._favoriteEditorPath = value; }
        }
        public string CSVFilepath { get; set; }
        public string LogFilePath { get; set; }
        public string EndpointAddress { get; set; }
        public int Calls { get; set; }
        public CallsType CallType { get; set; }
        public ClientsType ClientType { get; set; }
        public AuthSettings AuthenticationSettings { get; set; }
        public BindingType Binding { get; set; }
        public int Threads { get; set; }
        public bool Logging { get; set; }
        public enum CallsType
        {
            Entire,
            Unlimited,
            Fixed
        }

        public enum ClientsType
        {
            None,
            Rest,
            Soap
        }

        public Settings()
        {
            
        }

        public Settings(string csvFilePath, string endpointAddress)
        {
            this.CSVFilepath = csvFilePath;
            this.EndpointAddress = endpointAddress;
        }

    }
}
